<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>添加</title>
</head>
<body>
<h1>发布信息</h1>
<div>
    <form th:action="@{/emp}" method="post">
        <div th:class="form-group">
            <label>房屋描述</label>
            <input class="form-control" name="houseDesc"/>
        </div>
        <div class="form-group">
            <label>户型</label>
            <select class="form-control" name="typeId">
                <option th:each="type : ${houseTypes}" th:value="${type.typeId}" th:text="${type.typeName}"></option>
            </select>
        </div>
        <div class="form-group">
            <label>租金</label>
            <input  name="monthlyRent" type="text" class="form-control"/>
        </div>
        <div class="form-group">
            <button type="submit" class="btn btn-primary">发布</button>
        </div>
    </form>
</div>
</body>
</html>
